import java.util.Scanner;//#include "stdio.h"
public class fsxh{
    public static void main(String[] argv){
         Scanner r=new Scanner(System.in);
         double x=r.nextDouble();
         System.out.println(fun(x));
         xt();
    }
    static double fun(double x){
         double fsx=1,s=1;
         int i=1;
         while(fsx>1e-6){
             fsx=fsx*(0.5-i+1)*(x/i);
             s=s+fsx;
        }
       return s;
    }
    static void xt(){
       int i,j;
       for(i=1;i<=9;i++)
      {
         for(j=1;j<=i;j++)
              System.out.print("*");
        System.out.println();
       }
   }
}